import fetch from 'utils/fetch';
import Cookies from 'js-cookie';
export function getDict() {
  // lg 中文=zh  英文=en   印尼文=yn
  // dictType  字典类型
  const p = {
    dictType: 'REPORT_DEFINITION',
    lg: Cookies.get('language') || 'zh'
  }
  return fetch({
    url: '/api/admin/loanCommon/getMsgDict',
    method: 'get',
    params: p
  })
}